#! /bin/sh

sudo /usr/local/bin/openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2-1.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg  -c init -c "reset halt" -c "flash write_image erase nuttx.bin 0x08000000"
